Skip to content

release.sh: verify latest script before running#682

Merged
marionbarker merged 1 commit into
devfrom
release-script-freshness-guard
Jul 19, 2026
Merged

release.sh: verify latest script before running#682
marionbarker merged 1 commit into
devfrom
release-script-freshness-guard

Conversation

@bjorkert

Copy link
Copy Markdown
Member

Guards the release flow against running an outdated copy of release.sh.

Before any git operations, the script now fetches origin/dev and compares the running script (${BASH_SOURCE[0]}) against origin/dev:release.sh. If they differ, it aborts with guidance to switch to the latest dev and re-run.

This catches the cases where a stale script would otherwise run:

  • launched from an old branch
  • on dev but behind origin/dev

The check is on script content, not branch — the release flow switches branches itself, so what matters is that the logic being executed is current.

Guard the release flow against running an outdated copy of release.sh. Before any git operations, fetch origin/dev and compare the running script against origin/dev:release.sh, aborting if they differ.

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve by code review.

@marionbarker
marionbarker merged commit 3c7bf26 into dev Jul 19, 2026
1 check passed
@marionbarker
marionbarker deleted the release-script-freshness-guard branch July 19, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants